package com;

public class B extends A implements Fly{

    public static void main(String[] args) {
        B b = new B();
        Object cast = Fly.class.cast(b);
        System.out.println(cast);
    }

    @Override
    public void doExecute() {
        System.out.println("Fly");
    }
}
